package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 对象 snmp_equipmentinfo
 *
 * @author ruoyi
 * @date 2025-08-21
 */
public class SnmpEquipmentinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** mqtt服务设备标识 */
    @Excel(name = "mqtt服务设备标识")
    private String equipmentid;

    /** mqtt服务设备名称 */
    @Excel(name = "mqtt服务设备名称")
    private String equipmentname;

    /** mqtt服务设备IP */
    @Excel(name = "mqtt服务设备IP")
    private String equipmentip;

    /** mqqt服务端口 */
    @Excel(name = "mqqt服务端口")
    private String port;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String devicelocation;

    /** 设备补充说明 */
    @Excel(name = "设备补充说明")
    private String description;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 最近数据获得时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近数据获得时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lasttimeupdate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEquipmentid(String equipmentid)
    {
        this.equipmentid = equipmentid;
    }

    public String getEquipmentid()
    {
        return equipmentid;
    }
    public void setEquipmentname(String equipmentname)
    {
        this.equipmentname = equipmentname;
    }

    public String getEquipmentname()
    {
        return equipmentname;
    }
    public void setEquipmentip(String equipmentip)
    {
        this.equipmentip = equipmentip;
    }

    public String getEquipmentip()
    {
        return equipmentip;
    }
    public void setPort(String port)
    {
        this.port = port;
    }

    public String getPort()
    {
        return port;
    }
    public void setDevicelocation(String devicelocation)
    {
        this.devicelocation = devicelocation;
    }

    public String getDevicelocation()
    {
        return devicelocation;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setLasttimeupdate(Date lasttimeupdate)
    {
        this.lasttimeupdate = lasttimeupdate;
    }

    public Date getLasttimeupdate()
    {
        return lasttimeupdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentid", getEquipmentid())
            .append("equipmentname", getEquipmentname())
            .append("equipmentip", getEquipmentip())
            .append("port", getPort())
            .append("devicelocation", getDevicelocation())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("lasttimeupdate", getLasttimeupdate())
            .toString();
    }

    public SnmpEquipclient equipclient;
    public SnmpEquipclient getSnmpEquipclient()
    {
        return equipclient;
    }
    public void setSnmpEquipclient(SnmpEquipclient equipclient)
    {
        this.equipclient = equipclient;
    }
}
